package com.ruoyi.project.good.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品分类对象 goods_type
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public class GoodsType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分类ID */
    private Long goodstypeId;

    /** 公司ID */
    @Excel(name = "公司ID")
    private Long companyId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 1删除 */
    @Excel(name = "1删除")
    private Long isDel;

    /** 父级id */
    @Excel(name = "父级id")
    private Long parentId;

    /** 分类级别，1为1级分类 */
    @Excel(name = "分类级别，1为1级分类")
    private Long levelCode;

    /** $column.columnComment */
    @Excel(name = "分类级别，1为1级分类")
    private Long userId;

    public void setGoodstypeId(Long goodstypeId) 
    {
        this.goodstypeId = goodstypeId;
    }

    public Long getGoodstypeId() 
    {
        return goodstypeId;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setIsDel(Long isDel) 
    {
        this.isDel = isDel;
    }

    public Long getIsDel() 
    {
        return isDel;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setLevelCode(Long levelCode) 
    {
        this.levelCode = levelCode;
    }

    public Long getLevelCode() 
    {
        return levelCode;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodstypeId", getGoodstypeId())
            .append("companyId", getCompanyId())
            .append("name", getName())
            .append("sort", getSort())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("isDel", getIsDel())
            .append("parentId", getParentId())
            .append("levelCode", getLevelCode())
            .append("userId", getUserId())
            .toString();
    }
}
